<template>
    <el-form ref="form" :model="form" label-width="100px">
        <el-row>
          <el-col :span="6">
            <el-form-item label="编号">
                    <el-input v-model="form.key" disabled value="10"></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="6">
            <el-form-item label="姓名">
                    <el-input v-model="form.name"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="6">
            <el-form-item label="性别">
                <el-select v-model="form.sex" placeholder="请选择性别" style="width:100%">
                    <el-option label="男" value="男"></el-option>
                    <el-option label="女" value="女"></el-option>
                </el-select>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="6">
            <el-form-item label="身份证号">
                    <el-input v-model="form.IdCard" placeholder="请填写身份证号"></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="6">
            <el-form-item label="出生年月">
                <el-input v-model="form.birthday" placeholder="请填写出生年月" ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="6">
            <el-form-item label="年龄">
                    <el-input v-model="form.age" placeholder="请填写年龄"></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="6">
            <el-form-item label="联系方式">
                 <el-input v-model="form.tel" placeholder="请填写手机号"></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="6">
            <el-form-item label="身体状况">
                <el-select v-model="form.heathy" placeholder="请选择身体状况" style="width:100%">
                  <el-option label="良好" value="良好"></el-option>
                  <el-option label="健康" value="健康"></el-option>
                </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item label="血型">
                <el-col :span="5">
                  <el-select v-model="form.bloodtype" placeholder="请选择血型" style="width:100%">
                    <el-option label="A" value="A"></el-option>
                    <el-option label="B" value="B"></el-option>
                    <el-option label="o" value="o"></el-option>
                  </el-select>
                </el-col>
                <el-col :span="5">
                  <el-select v-model="form.bloodtype2" placeholder="请选择血型" style="width:100%">
                    <el-option label="HR阴性" value="HR阴性"></el-option>
                    <el-option label="HR阳性" value="HR阳性"></el-option>
                  </el-select>
                </el-col>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="病史">
                <el-input type="textarea" placeholder="请填写病史"  v-model="form.medical_history"></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="12">
            <el-form-item label="备注">
                <el-input type="textarea" v-model="form.note" placeholder="请填写备注"></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>
          <el-col :span="6">
            <el-form-item label="状态">
              <el-select v-model="form.state" placeholder="请选择状态" style="width:100%">
                <el-option label="正常" value="正常"></el-option>
                <el-option label="非正常" value="非正常"></el-option>
              </el-select>
            </el-form-item>
          </el-col>
        </el-row>
    </el-form>
</template>
<script>
export default {
  props: ['form'],
  data () {
    return {
    }
  },
  methods: {
  }
}
</script>
<style scoped>
  .avatar-uploader .el-upload {
    border: 1px dashed #d9d9d9;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
  }
  .avatar-uploader .el-upload:hover {
    border-color: #409EFF;
  }
  .avatar-uploader-icon {
    font-size: 28px;
    color: #8c939d;
    width: 90px;
    height: 120px;
    line-height: 120px;
    text-align: center;
  }
  .avatar, .noImg {
    width: 90px;
    height: 120px;
    display: block;
    border: 1px solid #eee
  }
</style>
